package com.cskaoyan.thread02.model.edition2;

public class ConsumerTask implements Runnable {

    Container container;

    public ConsumerTask(Container container) {
        this.container = container;
    }

    @Override
    public void run() {

        while (true) {
            // 不停的吃包子

            // 在消费者线程中调用
            container.eatFood();
        }

    }
}
